package com.sudo.dao.admin.entity;

import com.sudo.dao.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "sys_button")
public class SysButton extends BaseEntity {
    /**
     * 乐观锁
     */
    @Id
    private Integer id;

    /**
     * 按钮名称
     */
    @Column(name = "button_name")
    private String buttonName;

    /**
     * 按钮代码
     */
    @Column(name = "button_code")
    private String buttonCode;

    /**
     * 所属菜单
     */
    @Column(name = "menu_code")
    private String menuCode;

    /**
     * 是否显示 1默认显示
     */
    @Column(name = "status")
    private String status;

    /**
     * 备注
     */
    private String note;

    public interface Field{
        String id = "id";
        String buttonName = "buttonName";
        String buttonCode = "buttonCode";
        String menuCode = "menuCode";
        String status = "status";
        String note = "note";
    }
}
